#include"Seqlist.h"

void test1()
{
	SeqList sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushFront(&sl, 5);
	SeqListPushFront(&sl, 6);
	SeqListPrint(&sl);

	SeqListPopFront(&sl);
	SeqListPopBack(&sl);
	SeqListPrint(&sl);

	int find = SeqListFind(&sl, 2);
	SeqListInsert(&sl, find, 100);
	SeqListPrint(&sl);
	SeqListErase(&sl, find, 100);
	SeqListPrint(&sl);

	SeqListDestroy(&sl);
}

int main()
{
	test1();
	return 0;
}